<?php
/**
 * Created by PhpStorm.
 * User: wangye
 * Date: 19-2-14
 * Time: 下午7:00
 */

$socket = stream_socket_client("udp://127.0.0.1:1113",$erron,$errstr);

if (!$socket){
    echo "$error,$erron\n";
}else{
    fwrite($socket,"DollarKIller QUANZHAN\n哈哈哈");
    echo fread($socket,1024);
    fclose($socket);
}